﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ChiTietSanPham.ascx.cs" Inherits="Control_ChiTietSanPham" %>
<style type="text/css">
    .chitiet1
    {
        width: 600px;
    }
    .chitiet2
    {
        width: 500px;chitiet
    }
    .chitiet3
    {
        width: 137px;
    }
    .chitiet4
    {
        width: 400px;
    }
</style>

<table align="center" cellpadding="2" class="chitiet1">
    <tr>
        <td align="center" bgcolor="#0000CC">
            <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="X-Large" 
                ForeColor="White" Text="Chi Tiết Sản Phẩm"></asp:Label>
        </td>
    </tr>
    <tr>
        <td align="center">
            <asp:DataList ID="DataList1" runat="server" 
                onitemcommand="DataList1_ItemCommand">
                <ItemTemplate>
                    <table align="center" cellpadding="2" class="chitiet2">
                        <tr>
                            <td colspan="3">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td rowspan="3" class="chitiet3" height="200px" width="200px">
                                <asp:Image ID="Image1" runat="server" 
                                    ImageUrl='<%# "~/Hinh/"+Eval("HinhSP") %>' />
                            </td>
                            <td colspan="2">
                                <asp:Label ID="Label2" runat="server" Font-Size="Large" 
                                    Text='<%# "Tên Sản Phẩm:"+Eval("TenSP") %>' ForeColor="#0000CC"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="Large" 
                                    ForeColor="Red" Text='<%# "Giá:"+Eval("GiaBanSP") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:ImageButton ID="ImageButton1" runat="server" 
                                    CommandArgument='<%# Eval("MaSP") %>' CommandName="chonmua" 
                                    ImageUrl="~/Hinh/giohang.png" />
                            </td>
                            <td>
                                <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" 
                                    NavigateUrl="~/TrangChu.aspx">Trở Về Trang Chủ</asp:HyperLink>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <table align="center" border="1px" cellpadding="2" class="chitiet4" width="600px">
                                    <tr>
                                        <td align="left" width="100px">
                                            Mã Sản Phẩm:
                                        </td>
                                        <td align="left" width="300px">
                                            <asp:Label ID="Label4" runat="server" Text='<%# Eval("MaSP") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" width="100px">
                                            Mô Tả:
                                        </td>
                                        <td align="left" width="300px">
                                            <asp:Label ID="Label5" runat="server" Text='<%# Eval("MoTaSP") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" width="100px">
                                            Ngày Nhập:
                                        </td>
                                        <td align="left" width="300px">
                                            <asp:Label ID="Label6" runat="server" Text='<%# Eval("NgayNhapSP") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" width="100px">
                                            Số Lượng:
                                        </td>
                                        <td align="left" width="300px">
                                            <asp:Label ID="Label7" runat="server" Text='<%# Eval("SoLuongSP") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" width="100px">
                                            Mã Kiểu:
                                        </td>
                                        <td align="left" width="300px">
                                            <asp:Label ID="Label8" runat="server" Text='<%# Eval("MaKieu") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" width="100px">
                                            Mã Chất Liệu:
                                        </td>
                                        <td align="left" width="300px">
                                            <asp:Label ID="Label9" runat="server" Text='<%# Eval("MaChatLieu") %>'></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
        </td>
    </tr>
</table>

